package com.hmy.finance.service.core;

import com.baomidou.mybatisplus.extension.service.IService;
import com.hmy.finance.dal.po.DeviceProfitLossDetailPo;
import com.hmy.finance.service.core.dto.DeviceProfitLossDetailListQueryDto;

import java.time.LocalDate;
import java.util.List;

/**
 * @author songkf
 * @description 针对表【device_profit_loss_detail(租赁设备损益费用明细表)】的数据库操作Service
 * @createDate 2024-02-21 18:55:01
 */
public interface IDeviceProfitLossDetailService extends IService<DeviceProfitLossDetailPo> {
    /**
     * 查询具体设备的当天的损益明细
     *
     * @param deviceId 设备ID
     * @return 当天的损益明细集合
     * @author songkf
     */
    List<DeviceProfitLossDetailPo> queryTodayDeviceProfitLossDetailByDeviceId(Long deviceId, LocalDate handleDate);

    boolean checkInitialDayFeeWaiver(Long id);

    List<DeviceProfitLossDetailPo> selectDeviceProfitLossDetailList(DeviceProfitLossDetailListQueryDto queryDto);
}
